<include file="Public:header" />
<div class="container main"> <include file="Public:left" />
  <div class="w790">
  <script>
  	function uploaded(path){
		$("#img_url").attr("src",'__PUBLIC__'+path);
		$("input[name='img_url']").val(path);
	}
	
	function del_img(){
		if(confirm('您确定要删除图片吗?')){
			var file=$("input[name='img_url']").val();
			$.post("{:U('delImgBypath')}",{'path':file},function(data){
				$("input[name='img_url']").val('');
				$("#img_url").attr('src','');
			});
		}else{
			return false;
		}
	}
	//删除图组图片
	function mdel_img(path){
		$('#img_list div img').each(function(index, element) {
			$.post("{:U('delImgBypath')}",{'path':path},function(data){
				if(data=='OK'){
					
					$('#img_list div').each(function(index, element) {
                        if($(this).attr('url')==path){
							$(this).remove();
						}
                    });
					
					$('#picmsg input').each(function(index, element) {
                        if($(this).val()==path){
							$(this).remove();
						}
                    });
				}
			});
		});
	}
  </script>
  <h1><a href="{:U('index')}">返回列表</a>
  </h1>
    <form class="checkoutform" action="{:U('update')}" method="post"><input type="hidden" name="id" value="{$info.id}" />
      <table class="table table-bordered" width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td align="right">名称</td>
          <td><input name="title" type="text" id="title" value="{$info.title}" size="70" /></td>
        </tr>
        <tr>
          <td align="right">排序</td>
          <td><label for="title">
            <input name="sort" type="text" id="sort" value="{$info.sort}" />
          </label></td>
        </tr>
        <tr><td colspan="2" align="center"><button type="submit">提交</button></td>
        </tr>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
</body></html>